package com.example.demoss.model;

//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Jarno
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder

public class CallResult<T> implements Serializable {

    private int code;


  private String message;


    private T result;


    public static <T>CallResult<T> success(int code, String message,T result) {
        return new CallResult<T>(code, message, result);
    }


}
